<!doctype html>
<html>
<head>
{~'<base h'.'ref="'.ini('settings.site_url').'/" />'}
<meta http-equiv="Content-Type" content="text/html; charset={ini:settings.charset}" />
<title>{if mocod()=='index.main'}
{conf index_title}
{else}
{echo ($this->Title != '') ? $this->Title.' - ' : (ini('cplace.cnpre.enabled') ? (logic('misc')->City('name').ini('settings.tuangou_str').' - ') : '')}{ini:settings.site_name}{conf page_title}
{/if}
</title>
<meta name="Keywords" content="{~ini('settings.'.(mocod()=='index.main'?'index_':'').'meta_keywords')}" />
<meta name="Description" content="{~ini('settings.'.(mocod()=='index.main'?'index_':'').'meta_description')}{if $__p = productCurrentView()},{echo strip_tags($__p['intro'])}{/if}" />
<script type="text/javascript">
var thisSiteURL = '{ini:settings.site_url}/';
var tuangou_str = '{ini:settings.tuangou_str}';
</script>
<link rel="shortcut icon" href="favicon.ico" />
<!--{~ui('loader')->css('main')}-->
<!--{~ui('style')->loadCSS()}-->
<!--{~ui('loader')->js('@jquery')}-->
<!--{~ui('loader')->js('@common')}-->
{echo '<!-'.'-[if IE 6]>'}
<!--{~ui('loader')->js('DD_belatedPNG')}-->
<script type="text/javascript">
DD_belatedPNG.fix('*');
</script>
{echo '<![endif]-'.'->'}
{if false==DEBUG}
{~ui('loader')->js('@error.clear')}
{/if}


{if mocod()=='index.main'}
<style>
.site-mast__user-nav {
	width: 1190px;
}
.site-mast__branding, .site-mast__site-nav {
	width: 1190px;
}
</style>
{/if}

</head>
<body>
<div class="m_bg" style="background-color:#f2f2f0">
<div class="header">
<div class="site-mast">
{eval $unms = ui('style')->allowMulti() ? false : true}
<div class="site-mast__user-nav">
<ul id="mobile-info"{if $unms} style="background:none;"{/if}>
<!--<li class="hdnav_separator_left"></li>-->
<li class="mobile-info__item" style="width:300px;text-align: left; border:none;border-right:none">
{eval $kf=ini('data.cservice')}
服务热线:<font style="font-size: 14px;color: #C9033B;font-weight: bold;"> {$kf['phone']}</font>
</li>

</ul>

<div class="site-mast__user-w" >
<!--{if MEMBER_ID > 0}-->
<script type="text/javascript">
$(document).ready(function(){
if ($(".sp_member").width()>75){
$(".sp_member").width(75) ;}});
</script>
<div class="user-info {if MEMBER_ROLE_ID==3}welcom{/if}">
<div class="user-info__name">
<span style="float:left;">欢迎您，</span>
<span class="sp_member">{MEMBER_NAME}</span>
</div>
<div class="user-info__logout">
<a href="?mod=account&code=logout">退出</a>            
</div>
</div>
{if $this->MemberHandler->HasPermission('index',"",1) === true}
<div class="user-info" >
<a href="admin.php" target="_blank">管理后台</a>
</div>
{/if} 
{if MEMBER_ROLE_TYPE=='seller'||MEMBER_ROLE_ID==6}
<div class="user-info" >
<a href="?mod=seller&code=manage">商家管理</a>
</div>
{/if} 
<div class="user-info">
<div class="dropdown">
我的{TUANGOU_STR}<i class="tri"></i>
<div class="dropdown-menu">
<div><a href="?mod=me&code=coupon" class="sh_t">我的{TUANGOU_STR}券</a></div>
<div><a href="?mod=me&code=order">我的订单</a></div>
<div><a href="?mod=me&code=bill">收支明细</a></div>
<div><a href="?mod=me&code=favorite">我的收藏</a></div>
<div><a href="?mod=me&code=setting">账户设置</a></div>
<div><a href="?mod=me&code=address">收货地址</a></div>
<div><a href="?mod=recharge">账户充值</a></div>
<div><a href="?mod=me&code=credit">我的积分</a></div>
</div>
</div>
</div>
<!--{else}-->
<div class="user-info">
<div class="user-info__name">您好！欢迎您的到来。</div>
<div class="user-info__login">
<a href="?mod=account&code=login">登录</a>
</div>
<div class="user-info__signup">
<a href="?mod=account&code=register">注册</a>
</div>
</div>
<!--{/if}-->

</div>    
</div>
</div>

<div class="site-mast__branding">
<div class="site-logo"><a href="./"><img src="templates/default/images/logo.png" /></a></div>
{if mocod()=='index.main'}
<div style="float:left;width:100px; margin-top:15px;+margin-top:15px;margin-right:40px;">
<img src="./static/images/toubu1.png" />
</div>
{/if}


<div class="city-info" {if mocod()=='index.main'} style="margin-left: 20px;"{/if}>
<a class="at_city" href="javascript:void(0)">{~logic('misc')->City('name')}</a>
<a class="top_title" href="/home/citylist">[切换城市]</a>
</div>
{if mocod()!='index.main'}
<!-- <div style="float:left;width:200px; margin-top:20px;+margin-top:15px;margin-left:40px;"><img src="./static/images/toubu.png" /></div> -->
{/if}

<!--{eval $kw = logic('isearcher')->inputer()}-->
{if mocod()=='index.main'}
<div style="float:right;width:176px; margin-top:10px;+margin-top:18px;">
<a href="?mod=downapp" target="_blank"><img src="./static/images/appdown.png" /></a></div>
{/if}


</div>


</div>
<script type="text/javascript">
$(document).ready(function(){
$(".dropdown").mouseover(function(){$(".dropdown-menu").show();$(".dropdown").addClass("dropdown-open");});
$(".dropdown").mouseout(function(){$(".dropdown-menu").hide();$(".dropdown").removeClass("dropdown-open");});
});
</script>
<div class="site-mast__site-nav-w">
<div class="site-mast__site-nav">
{loop $this->Config['__navs'] $i $nav}
<a href="{$nav['url']}" title="{$nav['title']}" target="{$nav['target']}" class="{$nav['class']}"><span>{$nav['name']}</span></a>
{/loop}
</div>
</div>
<!--{eval echo ui('loader')->css($this->Module.'.'.$this->Code)}-->